package top.rainf.service;

import top.rainf.domain.vo.ChatRecord;

import java.util.List;

/**
 * @author 星环
 * @date null
 * @description 自动生成的聊天记录服务接口
 */
public interface IChatRecordService {

    List<ChatRecord> getChatRecordList();

    ChatRecord getOneById(int id);

    boolean deleteOneById(int id);

    boolean deleteAll(List<Integer> idList);

    boolean updateById(ChatRecord chatRecord);

    List<ChatRecord> getListByUserId(int userId, int friendId);

    List<ChatRecord> getNewMessage(int userId, int friendId);

    void sendMsg(int userId, int friendId, String msg);

}
